package com.mxt.moviedemo.service;

import com.mxt.moviedemo.entity.PageRequest;
import com.mxt.moviedemo.entity.PageResult;
import com.mxt.moviedemo.entity.Ticket;

import java.util.List;

public interface TicketService {
    PageResult<Ticket> getTicketByPage(PageRequest pageRequest);

    PageResult<Ticket> searchTicketByKeyword(PageRequest pageRequest, String keyword);

    Ticket getTicketById(int tid);

    int saveTicket(Ticket ticket);

    List<Ticket> getTicketsByUsername(String username);


    PageResult<Ticket> getTicketsByPage(PageRequest pageRequest);

    List<Ticket> searchTicketsByName(String uname);
    int addTicket(Ticket ticket);
    boolean updateTicket(Ticket ticket);
    int deleteTicket(int tid);

}